]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
modalDialog: Stop passing timestamp to Main.pushModal()
authorFlorian Müllner <fmuellner@gnome.org>
Fri, 16 Feb 2024 22:58:12 +0000 (23:58 +0100)
committerMarge Bot <marge-bot@gnome.org>
Sat, 17 Feb 2024 10:42:46 +0000 (10:42 +0000)
Since the move to Clutter.grab() in commit f4cae72d17af6, the
parameter doesn't do anything anymore.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/3195>

js/ui/modalDialog.js

index eda38b3af357d6e08f469604d21a0cc5e87548c4..58e894fced87fd484ae27f732bd97fd51355968c 100644 (file)
@@ -178,7 +178,7 @@ export const ModalDialog = GObject.registerClass({
         if (this.state === State.OPENED || this.state === State.OPENING)
             return true;
 
-        if (!this.pushModal(timestamp))
+        if (!this.pushModal())
             return false;
 
         this._fadeOpen(onPrimary);
@@ -234,14 +234,11 @@ export const ModalDialog = GObject.registerClass({
             this.backgroundStack.set_child_above_sibling(this._eventBlocker, null);
     }
 
-    pushModal(timestamp) {
+    pushModal() {
         if (this._hasModal)
             return true;
 
-        let params = {actionMode: this._actionMode};
-        if (timestamp)
-            params['timestamp'] = timestamp;
-        let grab = Main.pushModal(this, params);
+        const grab = Main.pushModal(this, {actionMode: this._actionMode});
         if (grab.get_seat_state() !== Clutter.GrabState.ALL) {
             Main.popModal(grab);
             return false;